﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Domain;

namespace Service.Interface
{
    public interface IMemoService : IService<Memo>
    {
        /// <summary>
        /// 获取备忘录分页集合
        /// </summary>
        /// <param name="userID">用户ID</param>
        /// <param name="pageIndex">页索引</param>
        /// <param name="pageSize">页大小</param>
        /// <param name="pageCount">总页数</param>
        /// <param name="delete">是否删除</param>
        /// <returns></returns>
        IList<Memo> LoadAllMemoByPage(int userID, int pageIndex, int pageSize, out int pageCount, bool delete);
        
        /// <summary>
        /// 更新备忘录是否扔进垃圾箱
        /// </summary>
        /// <param name="memoID">备忘录ID</param>
        /// <param name="delete">是否删除</param>
        void UpdateMemoMarkDelete(object memoID, bool delete);

        /// <summary>
        /// 获取备忘录集合
        /// </summary>
        /// <param name="userID">用户ID</param>
        /// <param name="delete">是否删除</param>
        /// <returns></returns>
        IList<Memo> LoadAllMemo(object userID, bool delete);

        /// <summary>
        /// 获取需要提醒的备忘录
        /// </summary>
        /// <returns></returns>
        IList<Memo> LoadAllWarnMemo();
    }
}
